package com.designPattern.ProxyPattern;

/**
 * Created by Administrator on 2018/3/12.
 */

public class StaticProxy implements IBuylunch {

    private IBuylunch obj;

    public StaticProxy(IBuylunch obj) {
        this.obj = obj;
    }

    @Override
    public void chooseRestaurant() {
        System.out.print("同事帮忙");
        obj.chooseRestaurant();
    }

    @Override
    public void orderLunch() {
        System.out.print("同事帮忙");
        obj.orderLunch();
    }

    @Override
    public void packLunch() {
        System.out.print("同事帮忙");
        obj.packLunch();
    }
}
